package io.renren.modules.hos.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.hos.entity.HosUserEntity;
import io.renren.modules.hos.entity.PatientEntity;
import io.renren.modules.hos.form.AuthDoctorForm;
import io.renren.modules.hos.form.AuthPatientForm;
import io.renren.modules.hos.vo.HosUserVo;

import java.util.Map;

/**
 * 
 *
 * @author ryf
 * @email 2559228480@qq.com
 * @date 2021-11-28 20:33:30
 */
public interface HosUserService extends IService<HosUserEntity> {

    PageUtils queryPage(Map<String, Object> params);

    //根据电话号码查询用户
    HosUserEntity queryUserByPhone(String phone);

    //根据id查询用户
    HosUserVo selectUserById(Long userId);

    //用户认证医生
    boolean authDoctor(AuthDoctorForm authDoctorForm);

    //用户认证病人
    boolean authPatient(AuthPatientForm authForm);

    PatientEntity selectUserDetailedInfo(Long hosUserId);

    //查询医生id
    Long selectDoctorId(Long id);

    //查询病人id
    Long selectPatientId(Long id);
}

